[index]
Icon Property
Syntax
set the icon of <button> to <designator> Applies to buttons
Description
The icon property is the ID number of an Icon resource. It determines which icon is used for a button.
Normally when you create a button, you also select its icon; however, it is also possible to change this icon afterward using a script.
To change the icon property of a button, use the set command. You can determine a button's icon property by referring to the Icon resource by name, if one exists, or by number. If a button does not have an icon, its icon property is 0.
You can change the icon property of a button by clicking on the Icon button in a button's Info dialog box. A dialog box that displays the available icons appears. When the user clicks on an icon to select it, the icon's ID appears in the upper left corner of the dialog box.
Notes
If you use the put command with the icon property, you will retrieve the number of the icon, not the name. You cannot retrieve an icon name.
Examples
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.